﻿namespace BasicModuleOrm.ProductRespository.Respository
{
    public static class RepositoryServiceCollectionExtensions
    {
        public static IServiceCollection AddReposotory(this IServiceCollection services, Action<ReposotoryOptions> action) 
        {
            ReposotoryOptions reposotoryOptions = new ReposotoryOptions();
            reposotoryOptions.services = services;
            action.Invoke(reposotoryOptions);
            return services;
        }
    }
}
